function logout() {
    if (confirm("是否退出?")) {
        jQuery.ajax({
            url: "/user/logout",
            type: "post",
            data: {

            },
            success: function (body) {
                if (body.code === 200 &&  body.data === 1) {
                    // 注销成功
                    location.href = "blog_list.html";
                } else {
                    alert("操作失败! + " + body.msg);
                }
            }
        });
    }
}